/**
 * @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm 
 * @Version 16-12-2014
 */

package modelLayer;

public class Trailer {
	private int trailerId;
	private String trailerName;
	private Supplier supplier;

	/**
	 * Constructor 1: For creation in ctrClass
	 */
	public Trailer(String trailerName, Supplier supplier) {
		trailerId = 0;
		this.trailerName = trailerName;
		this.supplier = supplier;
	}
	
	/**
	 * Constructor 2: For creation in dbClass
	 */
	public Trailer() {
		trailerId = 0;
		trailerName = "";
		supplier = null;
	}

	/**
	 * Constructor 3: For creation as association.
	 */
	public Trailer(int trailerId) {
		this.trailerId = trailerId;
		this.trailerName = null;
		this.supplier = null;
	}

	//Get and set trailerid
	public int getTrailerId() {
		return trailerId;
	}
	public void setTrailerId(int trailerId) {
		this.trailerId = trailerId;
	}

	/**
	 * @return the trailerName
	 */
	public String getTrailerName() {
		return trailerName;
	}

	/**
	 * @param trailerName the trailerName to set
	 */
	public void setTrailerName(String trailerName) {
		this.trailerName = trailerName;
	}

	/**
	 * @return the supplier
	 */
	public Supplier getSupplier() {
		return supplier;
	}

	/**
	 * @param supplier the supplier to set
	 */
	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}


}
